package orthoplanner.com.google.code.eventhandlers;

import javax.swing.JSlider;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

import orthoplanner.com.google.code.tools.Drawable;

public class SlWidthHandler implements ChangeListener {
	private final Drawable drawable;
	public SlWidthHandler(Drawable drawable) {
		this.drawable=drawable;
	}

	public void stateChanged(ChangeEvent e) {
		drawable.setStroke(((JSlider)e.getSource()).getValue());
	}

}
